home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20010921-20020314 / 000224_fdc@columbia.edu_Sat Dec 8 12:21:53 EST 2001.msg < prev    next >
Text File  |  2020-01-01  |  2KB  |  40 lines

  1. Article: 13049 of comp.protocols.kermit.misc
  2. Path: newsmaster.cc.columbia.edu!news.columbia.edu!news-not-for-mail
  3. From: fdc@columbia.edu (Frank da Cruz)
  4. Newsgroups: comp.os.linux.misc,comp.protocols.kermit.misc
  5. Subject: Re: Can't open("/dev/tty",O_RDWR) in RH7.1/ia64
  6. Date: 8 Dec 2001 12:21:29 -0500
  7. Organization: Columbia University
  8. Lines: 23
  9. Message-ID: <9uti6p$9s6$1@watsol.cc.columbia.edu>
  10. References: <9uofq3$otq$1@watsol.cc.columbia.edu> <3C101149.5050103@redhat.com> <9uql37$m2c$1@watsol.cc.columbia.edu> <uher2fz34.fsf@worldnet.att.net>
  11. NNTP-Posting-Host: watsol.cc.columbia.edu
  12. X-Trace: newsmaster.cc.columbia.edu 1007832091 21467 128.59.39.139 (8 Dec 2001 17:21:31 GMT)
  13. X-Complaints-To: postmaster@columbia.edu
  14. NNTP-Posting-Date: 8 Dec 2001 17:21:31 GMT
  15. Xref: newsmaster.cc.columbia.edu comp.os.linux.misc:529941 comp.protocols.kermit.misc:13049
  16.  
  17. In article <uher2fz34.fsf@worldnet.att.net>,
  18. Thomas A. Horsley <Tom.Horsley@worldnet.att.net> wrote:
  19. : ...
  20. : Ah! You are using telnet. I submitted a bug to redhat's bugzilla a few
  21. : weeks ago about telnetd very seldom (if ever) providing a controlling
  22. : tty, and lots of other people piled on saying they have the same problem.
  23. : Don't know if there is a fix, but I have found that sshd doesn't have
  24. : the problem. If you can get into the linux box via ssh, you should have
  25. : a proper controlling tty, and maybe even a /dev/tty that works.
  26. :
  27. Except that the object isn't to log in to Red Hat 7.2, it's to make Kermit
  28. file transfer work.  When in remote mode (e.g. on the far end of a Telnet
  29. connection), Kermit has to open "/dev/tty" so it can do ioctl's or whatever
  30. on the file descriptor to put it into and out of raw mode.  In this case I
  31. can't open /dev/tty ("No such device or address"), so if instead I just use
  32. 0 as the file descriptor, subsequent ioctl's (or tcsetattr(), whatever)
  33. fail with "Bad file descriptor".  Anyway, as others have pointed out by
  34. now, there's a bug in Red Hat 7.x /bin/login (for which a patch exists) and
  35. the problem supposedly does not occur if you use bash instead of csh or
  36. tcsh (but I can't verify this today because the site is down or off the
  37. net).
  38.  
  39. - Frank
  40.